import request from '@/utils/request'

export default {
  queryPage(data) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/queryPage',
      method: 'post',
      data
    })
  },
  get(id) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/get',
      method: 'GET',
      params: { id }
    })
  },
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/add',
      method: 'POST',
      data
    })
  },
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/update',
      method: 'POST',
      data
    })
  },
  enabled(data) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/enable',
      method: 'POST',
      data
    })
  },
  disabled(data) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/disabled',
      method: 'POST',
      data
    })
  },
  deleteById(id) {
    return request({
      url: '/energy-carbon/ecp-admin/miniProgram/carouseImage/deleteById',
      method: 'POST',
      data: id
    })
  }
}
